package com.itqf.entity;

import java.io.Serializable;
import java.math.BigDecimal;

public class Item implements Serializable {
    private static final long serialVersionUID =1L;
    private int iid;
    private String oid;
    private int gid;
    private Goods goods;
    private BigDecimal count;
    private int number;

    public Item() {
    }

    public Item(int iid, String oid, int gid, Goods goods, BigDecimal count, int number) {
        this.iid = iid;
        this.oid = oid;
        this.gid = gid;
        this.goods = goods;
        this.count = count;
        this.number = number;
    }

    public Goods getGoods() {
        return goods;
    }

    public void setGoods(Goods goods) {
        this.goods = goods;
    }

    public int getIid() {
        return iid;
    }

    public void setIid(int iid) {
        this.iid = iid;
    }

    public String getOid() {
        return oid;
    }

    public void setOid(String oid) {
        this.oid = oid;
    }

    public int getGid() {
        return gid;
    }

    public void setGid(int gid) {
        this.gid = gid;
    }

    public BigDecimal getCount() {
        return count;
    }

    public void setCount(BigDecimal count) {
        this.count = count;
    }

    public int getNumber() {
        return number;
    }

    public void setNumber(int number) {
        this.number = number;
    }

    @Override
    public String toString() {
        return "Item{" +
                "iid=" + iid +
                ", oid='" + oid + '\'' +
                ", gid=" + gid +
                ", count=" + count +
                ", number=" + number +
                '}';
    }
}
